import { Button } from "antd";
import "./styles.sass";
import { useNavigate } from "react-router-dom";

const EmptyHeroPage = () => {
  const navigate = useNavigate();

  const handleClick = () => {
    navigate("/");
  };

  return (
    <div className="empty-container">
      <Button onClick={handleClick} type="primary" style={{ background: "#ffe81f", color: "black" }}>
        На главную
      </Button>
      <h2>Cтраница не найдена</h2>
    </div>
  );
};

export { EmptyHeroPage };
